/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.uniceub.fsw.agenda.util;

/**
 * 06/04/2008
 * @author Rodrigo Uchôa - rodrigo.uchoa@yahoo.com
 *
 */
public class NumberUtils {
    
    public static Integer toInteger(String s) {
        if (StringUtils.isNullOrEmpty(s)) {
            return null;
        } else {
            return new Integer(s);
        }
    }

    public static Long toLong(String s) {
        if (StringUtils.isNullOrEmpty(s)) {
            return null;
        } else {
            return new Long(s);
        }
    }

}
